
<div class="blogs view">
<h2><?php echo __('Blog'); ?></h2>
	<table class="table">
            <tbody>
                <tr>
                    <td><?php echo __('Id'); ?></td>
                    <td><?php echo h($blog['Blog']['id']); ?></td>
		</tr>
                <tr>
                    <td><?php echo __('Title'); ?></td>
                    <td>
                        <?php echo h($blog['Blog']['title']); ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Article'); ?></td>
                    <td>
                        <?php echo h($blog['Blog']['article']); ?>
                    </td>
                </tr>
                <tr>
                    <td>Image</td>
                    <td>
                        <?php echo '<img src="'.$this->webroot.'img/uploads/images_resize/'.$blog['Blog']['image'].'"/>'; ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Posted Date'); ?></td>
                    <td>
                         <?php echo h($blog['Blog']['posted_date']); ?>
                    </td>
                </tr>
                <tr>    
                    <td><?php echo __('User'); ?></td>
                    <td>
                        <?php echo $this->Html->link($blog['User']['username'], array('controller' => 'users', 'action' => 'view', $blog['User']['id'])); ?>
                    </td>
                </tr>
        </tbody>
        </table>
</div>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Blog'), array('action' => 'edit', $blog['Blog']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Blog'), array('action' => 'delete', $blog['Blog']['id']), null, __('Are you sure you want to delete # %s?', $blog['Blog']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Blogs'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Blog'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
